<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Terrain.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Terrain.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_terrain_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef TERRAIN_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define TERRAIN_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="struct_terrain.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00018"></a>00018 {
<a name="l00019"></a><a class="code" href="struct_terrain.html#abe308d273ff51ad86ff02ef3ba3b6f0e">00019</a>    <span class="keywordtype">char</span> *<a class="code" href="structs_technologie.html#abe308d273ff51ad86ff02ef3ba3b6f0e">nom</a>;                   
<a name="l00025"></a><a class="code" href="struct_terrain.html#a18d76ff9235ca619107e2764b48d25cb">00025</a>    <span class="keywordtype">char</span> *representation;        
<a name="l00029"></a><a class="code" href="struct_terrain.html#aa340e71d16bbc05cc72bb415a547920f">00029</a>    <span class="keywordtype">char</span> cultivable;             
<a name="l00033"></a><a class="code" href="struct_terrain.html#ab307e267501fda944a1b2322d34b741d">00033</a>    <span class="keywordtype">char</span> traversableSiVide;      
<a name="l00036"></a><a class="code" href="struct_terrain.html#a24c2efb39df326b51247e4491b687a07">00036</a>    <span class="keywordtype">char</span> terrainDeSurface;       
<a name="l00041"></a>00041 } <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a>;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="comment">/*========================== Gestion de la mémoire ==========================*/</span>
<a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a47aaf1a3c77616cd9cfd9f3d9cc0c964" title="Initialise une structure terrain.">initTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> *<a class="code" href="structs_technologie.html#abe308d273ff51ad86ff02ef3ba3b6f0e">nom</a>, <span class="keywordtype">char</span> *representation);
<a name="l00053"></a>00053 
<a name="l00062"></a>00062 <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> <a class="code" href="_terrain_8c.html#a17f6d2a5a5e72f65012703d08ff86b85" title="Crée un Terrain.">creerTerrain</a>(<span class="keywordtype">char</span> *<a class="code" href="structs_technologie.html#abe308d273ff51ad86ff02ef3ba3b6f0e">nom</a>, <span class="keywordtype">char</span> *representation);
<a name="l00063"></a>00063 
<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a019ad52dcaaf5d9affaba79833a04367" title="Libère la mémoire allouée pour les tableaux du terrain.">libereTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00073"></a>00073 
<a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a822816d2ddc805632c2bc143e94ebc87" title="Détruit une structure terrain.">detruireTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="comment">/*============================= Accesseurs =============================*/</span>
<a name="l00089"></a>00089 <span class="keywordtype">char</span> *<a class="code" href="_terrain_8c.html#a7868e0b82fbba69e41a44685f0db2a7b" title="Retourne le nom d&#39;un terrain donné">getNomTerrain</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00090"></a>00090 
<a name="l00097"></a>00097 <span class="keywordtype">char</span> *<a class="code" href="_terrain_8c.html#a98c0f6fc6b2b83cefba4cee904e3e301" title="Retourne le nom du fichier contenant la représentation du terrain.">getRepresentationTerrain</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00098"></a>00098 
<a name="l00105"></a>00105 <span class="keywordtype">char</span> <a class="code" href="_terrain_8c.html#ab4cbb36b9a768272f2b881cbfab2d8ef" title="Retourne la valeur indiquant si un terrain est cultivable (1 si oui, 0 si non)">getCultivableTerrain</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00106"></a>00106 
<a name="l00113"></a>00113 <span class="keywordtype">char</span> <a class="code" href="_terrain_8c.html#a011061fc2aa3bae73aeab6b7d6d40174" title="Retourne la valeur indiquant si un terrain est traversable (1 si oui, 0 si non) quand il est vide...">getTraversableTerrain</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00114"></a>00114 
<a name="l00122"></a>00122 <span class="keywordtype">char</span> <a class="code" href="_terrain_8c.html#ad96cac3599d0bbb548a1d5dcf71e7d33" title="Retourne la valeur indiquant si un terrain est de surface (1 si oui, 2 si souterrain, 0 s&#39;il peut être de surface ou souterrain)">getTerrainDeSurface</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain);
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="comment">/*============================== Mutateurs ==============================*/</span>
<a name="l00132"></a>00132 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#ae905486fd580db88a4980798c6d5e9c8" title="Change le nom du terrain.">setNomTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> *nouvNom);
<a name="l00133"></a>00133 
<a name="l00142"></a>00142 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a36d78a6345e48e6a713e4844a209d431" title="Change le nom de ce qui représentera le terrain.">setRepresentationTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> *adresseImage);
<a name="l00143"></a>00143 
<a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#aa9bc9873caac28dd4f8a34acc8e7326c" title="Change la valeur indiquant si un terrain est cultivable.">setCultivableTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> valCultivable);
<a name="l00152"></a>00152 
<a name="l00160"></a>00160 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a789c4ab6c337f618cd1eed680d59b3da" title="Change la valeur indiquant si un terrain est traversable.">setTraversableTerrain</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> valTraversable);
<a name="l00161"></a>00161 
<a name="l00171"></a>00171 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a2839deae264c84c094e0414cb5ee1a5d" title="Change la valeur indiquant si un terrain est un terrain de surface uniquement.">setTerrainDeSurface</a>(<a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterrain, <span class="keywordtype">char</span> valTerrainDeSurface);
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="comment">/*========================== Fonctions autres ==========================*/</span>
<a name="l00182"></a>00182 <span class="keywordtype">char</span> <a class="code" href="_terrain_8c.html#ac82301ded9e08076e069203cd2304194" title="Compare le nom d&#39;un terrain à un nom donné">cmpTerrainNom</a>(<span class="keyword">const</span> <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pterr1, <span class="keyword">const</span> <span class="keywordtype">char</span> *nomTerr);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 <span class="comment">/*========================== Fonction de Test ==========================*/</span>
<a name="l00190"></a>00190 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a11fc8e2c6a753c4a211b0ce70393d02c" title="Teste les différentes fonctions du module Terrrain.">testTerrain</a>();
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
